package com.woniu.woniuproject.controller.admin;

import com.woniu.woniuproject.entity.Info;
import com.woniu.woniuproject.mapper.InfoMapper;
import com.woniu.woniuproject.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:<br>
 * 〈〉
 *
 * @author EDZ
 * @create 2020/11/21
 * @since 1.0.0
 */
@RestController
@RequestMapping("info")
public class InfoController {

    @Autowired
    InfoMapper infoMapper;
    @RequestMapping("queryone")
    public ResponseResult<String> queryByDate(int labelid){
        Info info=infoMapper.selectById(labelid);
        return new ResponseResult<>(info.getFilename());
    }
}